package com.zxj.friend.mapper.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxj.friend.domain.user.entity.UserSubmit;

import java.util.List;

/**
 * <p>
 * 用户提交表 Mapper 接口
 * </p>
 *
 * @author zxj2022
 * @since 2025-01-12
 */
public interface UserSubmitMapper extends BaseMapper<UserSubmit> {

    UserSubmit selectCurrentUserSubmit(Long userId, Long examId, Long questionId, String currentTime);

    /**
     * 查询用户提交的题目列表,依据用户提交次数排序获得热门题目
     * @return
     */
    List<Long> selectHostQuestionList();
}
